import React, { Component } from 'react'
import config from './config.json';
import styles from './Greeter.css';//导入

class Greeter extends Component {
  componentDidMount() {
    this.testLoadash();

  }
  testLoadash = () => {
    let a = { a: '1' }
    if (_.isEmpty(a)) {
      console.log("为空")
    } else {
      console.log("不为空")
    }
  }

  render() {
    //使用cssModule添加类名的方法
    return (
      <div className={styles.root}>
        {config.greetText + '111'}
      </div>
    );
  }
}

export default Greeter